package com.study.mapper;

import com.study.model.Loguser;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface LogMapper {
    @Select("select  * from test_u where id=#{id}")
    public Loguser getuser(String id);

    @Select("select  * from test_u where id='67888252'")
    public Loguser ls();

    @Insert("insert into test_u (username,password,id) values (#{username},#{password},#{id})")
    public boolean adduser(Loguser loguser);
//    public void adduser(String username, String password, String id);

    @Insert("insert into test_u (username,password,id) values ('小明 ','xiaomingla','2342125613456')")
    public boolean addxiaoming();

    @Delete("delete  from  test_u where id=#{id}")
    public boolean delLoguser(String id);

    @Update({"update test_u set id='88888888' where username='lisi'"})
    public boolean updatals();
}
